package com.liuch.mybatis.parsing;

import com.google.common.collect.Lists;

import java.util.List;

public class ParameterMappingTokenHandler implements TokenHandler{

    private List<String> parameterMappings = Lists.newArrayList();

    public List<String> getParameterMappings() {
        return parameterMappings;
    }

    @Override
    public String handleToken(String content) {
        this.parameterMappings.add(content);
        return "?";
    }
}
